package com.licheedev.demo.tcp;

public class Main {
    static NioServer server;

    public static void main(String[] args) {
        new Thread(){
            public void run(){
                try {
                    new NioServer().bind(8000);
                } catch (Exception e) {
                    e.printStackTrace();

                }
        }
        }.start();

        new Thread(){
            public void run(){
                try {
                    Thread.sleep(5000);
                    System.out.println("love");
                    NioServer.map.get("/127.0.0.1").channel().write("ggggggggggggggg");
                    NioServer.map.get("/127.0.0.1").channel().flush();
                } catch (InterruptedException e) { }
            }
        }.start();


    }
}
